{include file="pageheader_erp.htm"}

<link href="styles/erp_order.css" rel="stylesheet" type="text/css" />

{insert_scripts files="../js/jquery.1.3.2.js"}
{insert_scripts files="../js/jquery.blockUI.2.23.js"}

{include file="erp_receivable_search.htm"}

<style type="text/css">
	.current_page_style
	{
		color:red;
		font-weight:bold;
	}
	
</style>

<script language="JavaScript">
	$(document).ready(function(){
		$("span[id^='order_sn_']").css('cursor','pointer');
		$("span[id^='order_sn_']").mouseover(function(){
			$(this).css('color','red');
		});
		$("span[id^='order_sn_']").mouseout(function(){
			$(this).css('color','black');
		});	
		$("span[id^='order_sn_']").click(function(){
			var this_id=$(this).attr('id');
			var order_id=this_id.substr('order_sn_'.length,this_id.length-'order_sn_'.length);
			var open_url='order.php?act=info&order_id='+order_id;
			window.open(open_url,'_blank');	
		});	
		
				
	});
	
</script>

 <!-- start receivable list -->
 <div class="list-div" id="listDiv">
<table  cellpadding="3" cellspacing="1">
  <tr>
	<th>{$lang.erp_receivable_order_username}</th>
	<th width="25%">{$lang.erp_receivable_total_receivable_amount}</th>
	<th width="25%">{$lang.erp_receivable_total_gathered_amount}</th>
	<th width="25%">{$lang.erp_receivable_receivable}</th>
  </tr>
  {foreach from=$receivable_info item=receivable}
  <tr>
	<td align="center"><a target="main-frame" href="order.php?act=list&consignee={$receivable.consignee}">{$receivable.username}</a></td>
	<td align="center">{$receivable.receivable_amount}</td>
	<td align="center">{$receivable.money_paid}</td>
	<td align="center"><span style="{if $receivable.receivable gt 0}color:red;font-weight:bold;{else}color:blue;font-weight:bold;{/if}">{$receivable.receivable}</span></td>
  </tr> 
  {foreachelse}
  <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
  {/foreach}
   <tr><td colspan="10" align="right">{$page}</td></tr> 
</table>
</div>
<!-- end receivable list -->


{include file="pagefooter.htm"}

